Since you're looking for an exact match, there's no need to use Regexp here.  Just do `shell.body.include?(confirm_string)` instead of `shell.body =~ /#{confirm_string}/`.  This will also avoid the need to Regexp `confirm_string`.