{"uid":"cap_T5nB1WCBRMLpEbrdHhiOM","slug":"pennyrail-text-cleaner-remove-empty-lines-1de80690","name":"PennyRail Text Cleaner – Remove Empty Lines","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.remove-empty-lines--clean-blank-lines","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_0m5gKpT3SaqrOOmcG1pCb","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":"Strips all empty and blank lines from a given text string, returning a cleaned version with no whitespace-only lines","exampleAgentPrompt":"Can you clean up this text for me by removing all the empty and blank lines? Here it is:\n\n'Hello\n\n\nWorld\n\nThis is a test\n\n'","exampleUseCases":[{"title":"Clean up copy-pasted document text","prompt":"I copied this article into my notes and it's full of blank lines everywhere — can you strip out all the empty lines so the text reads cleanly? Here's the content: 'Introduction\n\n\nThis is the first paragraph.\n\n\nThis is the second paragraph.\n\n'"},{"title":"Normalize log file output","prompt":"I've got this log snippet that has a bunch of blank lines scattered throughout and I need a clean version without them — can you remove all empty lines from it? Log: 'ERROR: connection refused\n\nINFO: retrying\n\n\nSUCCESS: connected\n\n'"},{"title":"Prepare text for downstream processing","prompt":"Before I feed this text into another tool, I need to strip all blank lines out of it — can you clean it up? Here's the string: 'Step 1: open the app\n\nStep 2: log in\n\n\nStep 3: click submit\n\n'"}],"resultDescription":"Returns a cleaned string with all empty and blank (whitespace-only) lines removed, preserving all non-empty content lines in their original order.","failureModes":["Missing 'input' field returns a validation error","Extremely large strings may time out or hit payload limits","Non-string input types may cause schema validation failure","Network or Vercel cold-start latency on first call"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, pay-per-call text cleaning operation specifically for removing empty or blank lines from a string, with no infrastructure to manage and a low per-call cost of $0.001 USDC via x402 micropayment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:10:53.323Z","isFirstParty":false}