cleaning error text to be more standardized