Revert "Us of uninitialized value $word in substitution"

This reverts commit 9de4229c32b2c67a8488c3021c5fedb6a5a89959.