Error on invalid escape sequences

Also reformatting