# String Manipulation > Standard library string manipulation functions.
## Usage ```javascript var string = require( '@stdlib/string' ); ``` #### string Standard library string manipulation functions. ```javascript var str = string; // returns {...} ``` The namespace exposes the following string manipulation functions:
- [`capitalize( str )`][@stdlib/string/capitalize]: capitalize the first character in a string. - [`endsWith( str, search[, len] )`][@stdlib/string/ends-with]: test if a string ends with the characters of another string. - [`fromCodePoint( pt1[, pt2[, pt3[, ...]]] )`][@stdlib/string/from-code-point]: create a string from a sequence of Unicode code points. - [`lpad( str, len[, pad] )`][@stdlib/string/left-pad]: left pad a string. - [`ltrim( str )`][@stdlib/string/left-trim]: trim whitespace characters from the beginning of a string. - [`lowercase( str )`][@stdlib/string/lowercase]: convert a string to lowercase. - [`pad( str, len[, options] )`][@stdlib/string/pad]: pad a string. - [`percentEncode( str )`][@stdlib/string/percent-encode]: percent-encode a UTF-16 encoded string according to RFC 3986. - [`removeFirst( str )`][@stdlib/string/remove-first]: remove the first character of a string. - [`removeLast( str )`][@stdlib/string/remove-last]: remove the last character of a string. - [`removePunctuation( str )`][@stdlib/string/remove-punctuation]: remove punctuation characters from a string. - [`removeUTF8BOM( str )`][@stdlib/string/remove-utf8-bom]: remove a UTF-8 byte order mark (BOM) from the beginning of a string. - [`removeWords( str, words[, ignoreCase] )`][@stdlib/string/remove-words]: remove a list of words from a string. - [`repeat( str, n )`][@stdlib/string/repeat]: repeat a string a specified number of times and return the concatenated result. - [`replace( str, search, newval )`][@stdlib/string/replace]: replace search occurrences with a replacement string. - [`reverseString( str )`][@stdlib/string/reverse]: reverse a string. - [`rpad( str, len[, pad] )`][@stdlib/string/right-pad]: right pad a string. - [`rtrim( str )`][@stdlib/string/right-trim]: trim whitespace characters from the end of a string. - [`startcase( str )`][@stdlib/string/startcase]: capitalize the first letter of each word in a string. - [`startsWith( str, search[, position] )`][@stdlib/string/starts-with]: test if a string starts with the characters of another string. - [`trim( str )`][@stdlib/string/trim]: trim whitespace characters from the beginning and end of a string. - [`uncapitalize( str )`][@stdlib/string/uncapitalize]: uncapitalize the first character of a string. - [`uppercase( str )`][@stdlib/string/uppercase]: convert a string to uppercase. - [`utf16ToUTF8Array( str )`][@stdlib/string/utf16-to-utf8-array]: convert a UTF-16 encoded string to an array of integers using UTF-8 encoding.
## Examples ```javascript var getKeys = require( '@stdlib/utils/keys' ); var string = require( '@stdlib/string' ); console.log( getKeys( string ) ); ```