white spaces error handling