vector from string method