Trim error messages by using <?> with 'fail'