Why does String.fromCharCode does not work?

I'm trying to remove a break line from a text. This is what i'm using:

var webData = download.data.Replace(String.fromCharCode(13),"");

but i get the error which says fromCharCode is not a member of String. what could possibly be wrong? thanks,

There is no "fromCharCode" function in the String class. Everything in String is here. You can use " " for a linebreak character.