The id string to process
The prefix to remove (defaults to "parent-")
The id with the prefix removed, or the original id if prefix not found
processId("parent-123") // returns "123"
processId("parent-abc", "parent-") // returns "abc"
processId("child-456", "parent-") // returns "child-456"
Removes a prefix from an id string if present. Useful for normalizing ids that may have parent or namespace prefixes.