Fix for cdrom device detention in vSphere CPI. The strip method will remove the problematic newline.