Implemented type checking in existing String funcs, finished Replace implementation