Revert "match end of string"

This reverts commit fd29af65469bf261f86e3bd5847a97ba7ae099c8.