Unnecessary space at the end of string error - corrected!