Changed err message formatting and fixed whitespace issue