integer1 The first argument, of type integer, is the offset at which to begin the extraction. The first character is at offset 0. integer2 The second argument, of type integer, is the number of characters to extract. string The third argument, of type string, is the string from which to extract the characters.