Revert "Remove variable set."

This reverts commit cb253592349faa65f7ff7c6a898469b5892d5625.
Revert "Use strpos()."

This reverts commit a7cc72a54c9308d33277e4a5675bf682db63f3a9.