Extended toTextFilter to limit the length with whole words. Added loading spinner