output result words should contain ONLY input letters