function trimStart(inputString, charsToTrim = ' ') {
  if (!inputString) {
    return '';
  }

  const firstNonTrimCharIndex = [...inputString].findIndex(
    char => !charsToTrim.includes(char)
  );
  return inputString.substring(firstNonTrimCharIndex);
}
Trim the start of a string of the specified characters.

@param {string} inputString The string to trim the start of.
@param {string} [charsToTrim] The characters to trim from the start of the string. Defaults to a single space. The order of the characters does not matter.
@returns {string} The trimmed string.