micro-efficiency in the tag manager

Manual replace function, screw the built in Java one