Made String and Hash modules classes and inherit from core