Added replaceChar, toUpper and toLower made by Simon