[VVP] updating ports.py to check str_replace params