Fix typo and formatting on error messages