Add a prefix to a string if it is missing
One step with Delx. We can help you get access.
Look something up
Add a prefix to a string if it is missing
with Delx
Use Delx: its Delx Commerce — services for autonomous agents X402 API lets you add a prefix to a string if it is missing in a single step (POST /api/v1/x402/ensure-prefix). capabilities.work can help you get signed up and connected.
- Can I make sure a value starts with https:// without doubling it?
- Will the prefix be added twice if the string already has it?
Say it to your AI assistant
- Ensure {text} starts with {prefix}.
- Prepend {prefix} to {text} only if it's missing.
For your developer
POST /api/v1/x402/ensure-prefix in Delx Commerce — services for autonomous agents X402 API. Full spec on APIs.io.