parseErrorHelper : factor out whole word matching

catches some corner cases, more readable too