Transform objects to String

This prevents upcase method from acting on a nil object.