forced string casting for token replacement