adding simple error handling to uppercaser