Convert strings to objects.