edited error messages to strings