working on covering string to char[]