# Strings in C#

Almost every program works with text. You will learn how C# strings behave, build text with string interpolation, and use the string methods you will reach for every day.

Updated: November 3, 2026

## [Strings in C#](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/strings-in-csharp)

1. [Understanding the String Class](https://www.ask-codey.com/lessons/strings-in-csharp-understanding-the-string-class) (Novice): A C# string is a read-only sequence of characters; read them by index, write special characters with escape sequences, and understand why strings never change.
2. [String Interpolation](https://www.ask-codey.com/lessons/strings-in-csharp-string-interpolation) (Novice): Build strings by putting values straight into the text with $"...{value}...", and format numbers, money and columns as you go.
3. [Useful String Methods](https://www.ask-codey.com/lessons/strings-in-csharp-useful-string-methods) (Apprentice): Find text with IndexOf, LastIndexOf, Contains, StartsWith and EndsWith, and cut and reshape it with Substring, Split, ToUpper, ToLower, Trim and Replace.
4. [Common String Tasks](https://www.ask-codey.com/lessons/strings-in-csharp-common-tasks) (Apprentice): Combine string methods to do everyday jobs, cleaning up input, reformatting names and phone numbers, padding, reversing and building long strings.

## [Exercise: Strings](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/exercise-strings)

1. [Exercise: Strings](https://www.ask-codey.com/lessons/exercise-strings) (Apprentice): Build HTML and XML from strings, format and rearrange people's names, and try seven bonus word problems, with tests that check each method.

Source: https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/chapters/strings-in-csharp
