Refactor char[] input behavior into CharacterBuffer class. Regression looks good.