slice the string. Don't use lstrip incorrectly

Fix incorrect usage of lstrip per comment by @cvrebert

https://github.com/saltstack/salt/pull/7973/files#r7103601