# \#flatfile-format

**URL:** https://techcommunity.softwareag.com/tag/flatfile-format/1003.md

[Latest](https://techcommunity.softwareag.com/latest.md) · [Categories](https://techcommunity.softwareag.com/categories.md) · [Tags](https://techcommunity.softwareag.com/tags.md)

---

## [Flatfile space issue after each bunch of header and detail records. If I use Trim service it only removes first and last spaces. Please let me know any other alternatives](https://techcommunity.softwareag.com/t/flatfile-space-issue-after-each-bunch-of-header-and-detail-records-if-i-use-trim-service-it-only-removes-first-and-last-spaces-please-let-me-know-any-other-alternatives/238337)

<div class="topic-metadata">

**Author:** [@jagadish069](https://techcommunity.softwareag.com/u/jagadish069)\
**Replies:** 1\
**Last updated:** [January 28, 2021, 10:16am UTC](https://techcommunity.softwareag.com/t/flatfile-space-issue-after-each-bunch-of-header-and-detail-records-if-i-use-trim-service-it-only-removes-first-and-last-spaces-please-let-me-know-any-other-alternatives/238337 "2021-01-28T10:16:04Z")

</div>

Hi, Could someone please help me in removing the space after each bunch of header and detail records. My final output is a string. Please refer the example below Eg: H~abc~def~ D~ghi~ijk D~lmn~opq H~abc~def~ D~ghi…
