Check If Two Array Contains Python String Replace With Regex