extract data from given text