Revert "Str.samecase reimplementation mark 2"

This reverts commit 2598e8767e3b25d6a2548a7ba5ac68c0b371852c.