startsWith()

Returns TRUE if the current String starts with s; otherwise FALSE.

Syntax

Boolean startsWith(String s [, Numeric index ])
  1. s is the prefix to search for.
  2. index (optional) is the byte position from which to start the search. The first byte of a string is at position 0.