way to replace token in collection