Add function which can filter words by given letters. But need to optimise performance.