White space and correctly escaped characters

Added support for the possibility of some or no white space in front of error description. Corrected the escape characters.