Constants were changed to a char. .replace is expecting a String.
More fixes

a lot of the .subString() needed another +1 because the 2nd argument is
exclusive.
Merge pull request #1 from Nret/fixes

Fixes