Removing null characters from string to fix issue #2