better handling of char[]