Removed sprintf(), using regex which supports reordering tokens.