Update ReplacesFilter.py

Multiple replacement issue fixed