Simple string util which substitutes {n} tokens within the specified string