Fixed a bug that disallowed empty replacement strings (to delete sections
of a string). Fixed formatting I messed up in my last commit.