Use getString method rather than toString.