Parsed the iindoming data tostring then used If statment to control program flow