Solved dict problem for string of length 3. Need to refactor to work with abstract lenghts