How to do I go about changing a string from "\n \t\t\t\t\t\t\tArthur Lynch \t\t\t\t\t\t" to "Authur Lynch" in javascript.
try str.replace(regexp|substr, newSubstr|function)
e.g.
str.replace(/\n/g,'').replace(/\r/g,'');