added method to parse text mass