using char instead single String

Using char instead single String will save memory and make the process faster.