add rspec for check number of character