If error message is associated with period, singularize and remove period

See #616