simplification of char->string