Modify the getString function