added memset for string