refactored solutions passed rspec. altered extra_character variable from special_characters