• Splits a string into logical word segments

    Parameters

    • Optionalstr: string

    Returns string[]