[#BloombergLP-bdlb-String-trim-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::trim :relfileprefix: ../../../ :mrdocs: Remove all leading and trailing whitespace characters from the specified `string`. == Synopsis Declared in `<bdlb_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void trim(std::pmr::string* string); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#