remove substrings.py