Updated text replacement to work with both ST2 and ST3