FYI, Steve L Walker's original code: this.rawValue = str.replace(/\s/,"\n");Actually replaces any whitespace "\s" character with a newline "\n" character, not a carriage return "\r" character as stated in the answer and requested by the OP. While the newline character the OP got is likely what t...