Added support for LOCATE operation

What if not an instance of NameValue or str?