Dirt Road · Normalize Whitespace
Normalize whitespace characters in strings to clean up extra spaces, tabs, and inconsistent formatting.
What it does
Normalize whitespace characters in strings to clean up extra spaces, tabs, and inconsistent formatting.
- Clean up user-generated content with inconsistent spacing
- Normalize text before processing in NLP pipelines
- Standardize whitespace in imported data files
Ideal buyer
Data engineers and developers preprocessing text data for analytics, ML, or content management systems.
Run this through your governed agent wallet.
- 01Bootstrap AXON once with
npx @axon402/init. - 02Use the AXON runtime MCP tools to
search_x402_servicesorinspect_x402_offerfor this service. - 03Quote, test-buy, then run the governed paid fetch through AXON.
Send this
Prompt for your agent
A natural-language instruction for your LLM agent — with this endpoint exposed as a tool — to call this resource. Not sent to the endpoint; the endpoint consumes the JSON body below.
Pasting this prompt into a raw ChatGPT or unconfigured agent will notexecute the paid endpoint flow. Run it through an agent with the AXON runtime / MCP tools exposed (see “Use with AXON” above) so the 402 challenge, quote, and governed fetch are handled for you.
“Normalize the whitespace in this messy user input: ' Hello world '”
Endpoint request body
The JSON payload your agent sends to the endpoint.
{
"text": " Hello world \t\n "
}Advanced HTTP details
For integrators who need the raw protocol surface. Most agents should use AXON above instead of calling these directly.
curl fallback
curl https://string-utils.dirtroad.dev/tools/paid/normalize-whitespace \ -H "Content-Type: application/json" \ -H "X-PAYMENT: [signed_payment_envelope]" \ -d '{"text":" Hello world \t\n "}'
Payment & settlement details
Raw on-chain settlement parameters. AXON above handles these automatically through quote / test-buy / governed fetch.
Price & network
Trust & risk
More in Tools
Browse all →Other resources in this category
Category proxy — we don't track live co-purchase signals yet.