![Solution to Leetcode problem 1221: Split a string in Balances Strings | by Pierre-Marie Poitevin | Medium Solution to Leetcode problem 1221: Split a string in Balances Strings | by Pierre-Marie Poitevin | Medium](https://miro.medium.com/max/1200/1*w3Ri15-sdehHPgc_4bZXGg.png)
Solution to Leetcode problem 1221: Split a string in Balances Strings | by Pierre-Marie Poitevin | Medium
![This is my code, I wanted to split the above string through +, -, /, and *. All works fine except it doesn't split by the '-' character. It outputs a list This is my code, I wanted to split the above string through +, -, /, and *. All works fine except it doesn't split by the '-' character. It outputs a list](https://preview.redd.it/l84hf3i9khw41.jpg?width=640&crop=smart&auto=webp&s=277c7d1f0c5d355c50c4e68951d64480e05e2fb8)
This is my code, I wanted to split the above string through +, -, /, and *. All works fine except it doesn't split by the '-' character. It outputs a list
![How to manipulate a part of string: Split, Trim, Substring, Replace, Remove, Left, Right - Tutorials - UiPath Community Forum How to manipulate a part of string: Split, Trim, Substring, Replace, Remove, Left, Right - Tutorials - UiPath Community Forum](https://global.discourse-cdn.com/uipath/original/3X/5/a/5a667eb62c575ef918966a4214c05afba9a9c6b9.png)