Remove unnecessary character from error message