Fixed the issue of and end ":" being included in..

Fixed the issue of and end ":" being included in the slice name:

previously
|sliceName:|sliceValue|
caused the name of the slice to be "sliceName:", now it's "sliceName".