Aie ! So there is a detail to add (somewhere) in the documentation : 

The name of VMs in vCenter must lower  to works properly with "tolower" !

Do you want the "lower" back ?