{"uid":"cap_lkKCg1b9380PSjK8f2lmy","slug":"pennyrail-text-whitespace-normalizer-202eb8dd","name":"PennyRail Text Whitespace Normalizer","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.normalize-whitespace--normalize-whitespace","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iYtwTJKuZIpi0qka8rUwc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes whitespace in a given text string, collapsing and trimming extraneous spaces, tabs, and newlines","exampleAgentPrompt":"Can you clean up the whitespace in this text for me — it has a bunch of extra spaces and tabs scattered throughout: 'Hello,   world!  This   is   a   test.'","exampleUseCases":[{"title":"Clean user-submitted form input","prompt":"I'm getting form submissions with inconsistent spacing — lots of double spaces and stray tabs. Can you normalize the whitespace in this text: 'First   Name:  John     Last  Name:  Doe'?"},{"title":"Preprocess text before NLP pipeline","prompt":"Before I run sentiment analysis, I need to clean up this raw scraped text that has tons of irregular whitespace: 'The  product   was  great  but   shipping  was   slow.' Can you normalize the whitespace?"},{"title":"Fix copy-pasted document text","prompt":"I copied some text out of a PDF and it came out with weird spacing everywhere. Can you normalize the whitespace in this: 'Chapter  1:   Introduction\n\nThis   document   outlines   the   key   findings.'"}],"resultDescription":"Returns a JSON object containing the whitespace-normalized version of the input string, with leading/trailing whitespace trimmed and internal runs of whitespace collapsed to single spaces.","failureModes":["Missing required 'input' field returns a validation error","Non-string input may cause a 400 bad request","Empty string input may return empty output or an error","Network timeout if the service is unavailable","Payment failure (402) if USDC balance is insufficient for the $0.001 fee"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call text whitespace normalization step without spinning up your own string processing logic. Ideal for preprocessing pipelines, cleaning user input, or sanitizing copy-pasted content before downstream NLP tasks. Best suited for single-string, synchronous use cases where cost per call is acceptable at $0.001 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:51.977Z","isFirstParty":false}