prefixIfNot

Adds the specified prefix to this String if it does not already start with it.

Receiver

The original String.

Return

The string with the prefix added if not present.

Parameters

prefix

The prefix to be added if not present.