cURL
curl --request POST \ --url https://api.dirtroad.dev/tools/string-utils/normalize-whitespace \ --header 'Content-Type: application/json' \ --header 'X-Payment: <api-key>' \ --data ' { "str": "<string>" } '
{ "original": "<string>", "result": "<string>" }
Normalize whitespace by replacing multiple spaces with single space and trimming Requires x402 blockchain payment.
x402 blockchain payment authorization header containing signed EIP-3009 Transfer with Authorization
Input string to process
String with normalized whitespace
Original input string
Processed result string