leading/trailing space count, text discarded | GenAiHub