Condition change on regex to reduce Fps