Removing null characters from string to fix issue #2
Updated removeNulls to work properly with null and undefined.

This is sort of ironic. Also, coding style consistency
in a codebase is important!