Fixed syntax errors generated from expected error strings