refactoring getStringThatShowsWhenVotingEnds