That's exactly what the code does. It just get rid of the first occurrence of "<spaces>if<spaces>". Am I missing something?