Replaced a few String types with ErrorMessage.