# Class: StringExtension

## StringExtension

#### new StringExtension()

### Methods

#### <static> isString(source)

  Trim all strings in array

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `source` | array.<string> | strings array

  ##### Returns:

  trimed strings
  Type
    array.<string>

#### <static> isString(obj)

  Check if object is of type String

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `obj` | * | object to check

  ##### Returns:

  is / is not
  Type
    boolean

#### extractPart(from, to)

  Extract part of string. If 'from' is not defiend it will be 0. If 'to' is not defined or is outside of string length it will be string length

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `from` | number | undefined | start index
  `to` | number | undefined | end index

  ##### Returns:

  extracted part
  Type
    string

#### hasTag(tag)

  Check if tag exists in string

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `tag` | string | tag to check

  ##### Returns:

  has / has not
  Type
    boolean

#### insertAt(index, value)

  Insert value at index

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `index` | number |
  `value` | string |

  ##### Returns:

  Type
    string

#### isEmpty()

  Check if string is empty or not

  ##### Returns:

  is / is not
  Type
    boolean

#### removeLineBreaks()

  Remove line breaks from string

  ##### Returns:

  Type
    string

#### replaceOccurences(occurences)

  Replace occurences with ''

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `occurences` | array.<string> |

  ##### Returns:

  Type
    string

#### replacePart(startIndex, endIndex, content)

  Replace part of string

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `startIndex` | number | start index
  `endIndex` | number | end index
  `content` | string | value

  ##### Returns:

  Type
    string

#### replaceTag(tag, newTag)

  Replace tag in string

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `tag` | string | tag to replace
  `newTag` | string | tag value

  ##### Returns:

  Type
    string

#### toCamelCase()

  Convert forst letter of word to upper case

  ##### Returns:

  Type
    string

#### Search results