Changed name of method getString in toString.