Parsing the string and storing