Added fix to remove whitespace - worked fine on my machine but not on a Mac at school.