resolved space issue for error message