I tested this and it was fine.  slice (0, -1) will basically return a new string that starts with 0 and has the length of the string