Add function to get char * to string