**Description** <!-- A clear and concise description of the new feature. --> Hi, I would be great to have a method to replace strings only at the start/end of the string. This is currently possible with ```php if ($path->startsWith($basePath)) { $path = $path->slice($basePath->length())->prepend("..."); } ``` but that is a common enough task to warrant a separate function for, imo. **Example** <!-- A simple example of the new feature in action (include PHP code, YAML config, etc.) If the new feature changes an existing feature, include a simple before/after comparison. --> ```php $baseDir = __DIR__; $possiblyRelative = $path->replaceStart($baseDir, "."); ``` (names tbd)