changed some regex
added toString()
changed char value of '\n' to 10