Fixed rubocop warnings to regex demo