Getting data from string