added a new method getString
getString2 is added