fixed char * end charcter