Loosely matching rhymes for replacement function