Updated functions errorMessage() and space()

Got rid of the extra parenthesis at the end() because it made the code too verbose