# PennyRail Text Whitespace Normalizer

> PennyRail Text Whitespace Normalizer is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Normalizes whitespace in a given text string, collapsing and trimming extraneous spaces, tabs, and newlines

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.normalize-whitespace--normalize-whitespace
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-text-whitespace-normalizer-202eb8dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lkKCg1b9380PSjK8f2lmy

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pennyrail-text-whitespace-normalizer-202eb8dd -d '<json body>'
```

Example prompt: 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.'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Machine-readable settlement service

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-text-whitespace-normalizer-202eb8dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
