add logic for letter y
change logic to use slice
gemspec