Changed stringValue method to objectValue for efficiency