the input is "X4/X2/X10/". I want to remove X10 from this. The required output is "X4/X2/". what is the easiest way to do this?