Removed formatStringList, rewrote replace

Removed formatStringList to add later after performance concerns are
researched further. Rewrote replacement to have replace be the base
function with remove and insert being syntactical sugar for calls to
replace.