Revert "Improved string detection."

This reverts commit 8e2bec2e0444bf06f3aee4c761ecb4ef3a6f1756.