change char[] into string