removed old code as its now in the base class
refactored string helper code to helper class