enhanced string to char conversion.