print char in getChar