helper function for term pathauto pattern updates