added support for char *