change printChars to println
add stringToInt