Parses the string into variables