1/19
Looks like no tags are added yet.
string
object of the system.string class
string literals
enclosed in double quotes (“ “)
verbatim strings
(@) preserve escape characters and allow multiline strings
length
gets the number of string

comparing strings
comparing strings using (==)

indexer
getting the character at an index
uses ([]) to access a character
![<p>getting the character at an index</p><p></p><p>uses ([]) to access a character</p>](https://assets.knowt.com/user-attachments/f78cff8a-161b-4b2d-8d51-fa5ada1c29b8.png)
string.IsNullOrEmpty
Checks whether a specified string is null or an
empty string ("").

string.IsNullOrWhiteSpace
Checks whether a specified string is null,
empty (""), or consists only of whitespace characters.
//true or false

.ToUpper/Lower()
to change case

IndexOf
Returns the zero-based index of the first occurrence of a specified character or
substring within the string. If the value is not found, it returns -1.
variablename.Methods
LastIndexOf
Returns the zero-based index of the last occurrence of a specified character
or substring by searching from right to left. If the value is not found, it returns -1.
variablename.Methods
contains
Returns a boolean value (true or false) indicating whether the specified
character or substring occurs anywhere within the string.
variablename.Methods
.ToString
convert variables to string
Substring()
extracts part of a string, starting at a specific index and optionally for a given length.

.Trim
Removes all leading (beginning) and trailing (end) occurrences of
whitespace or specified characters from the string.
.TrimStart
Removes all leading (beginning) occurrences of whitespace or
specified characters from the string.
.TrimEnd
Removes all trailing (end) occurrences of whitespace or specified
characters from the string.
Replace()
replaces all occurrences of a specified substring with another substring.

Starts/EndsWith()
to check if a string begins or ends with a specific substring.
true or false output
Split
to divide a string into an array of substrings based on a
delimiter.
