Adds $start!=$end logic to _tagReplace