Restore checks to prevent string being appended/prepended/etc to itself