added a explodeByNewLines method