Added functions toInt and splitString