Converted wildcards to string format and simplified pronoun replacement