Syntax error string generator appears to be working correctly now.