corrected the translation to work for words that start with multiple constants and added in a test suite