Added sentence validation
Added rspec test for sentence validation