Added back code to output single char rather than whole string