StringExtensionPack 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package StringExtensionPack --version 1.0.0
                    
NuGet\Install-Package StringExtensionPack -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StringExtensionPack" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StringExtensionPack" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="StringExtensionPack" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StringExtensionPack --version 1.0.0
                    
#r "nuget: StringExtensionPack, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package StringExtensionPack@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StringExtensionPack&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=StringExtensionPack&version=1.0.0
                    
Install as a Cake Tool

StringExtensionPack

StringExtensionPack is a lightweight, easy-to-use C# library that provides powerful extension methods for common string operations. Perfect for any .NET developer who wants to write cleaner, more expressive, and reusable code when working with strings.

Developed with ❤️ by Herbert

✨ Features

🔠 Convert strings to Title Case

📧 Validate if a string is a valid email

✂️ Remove special characters from a string

🔄 Check if a string is a Palindrome

🔡 Capitalize the first character of a string

📦 Installation

You can install StringExtensionPack via NuGet:

dotnet add package StringExtensionPack

Or search for "StringExtensionPack" in the NuGet Package Manager in Visual Studio.

🚀 Usage

First, import the namespace:

using StringExtensionPack;

Now you can directly use the extension methods on any string:

string title = "hello world".ToTitleCase(); // "Hello World"

bool isValid = "example@email.com".IsEmail(); // true

string cleaned = "Hello@World#2025!".RemoveSpecialCharacters(); // "HelloWorld2025"

bool palindrome = "A man a plan a canal Panama".IsPalindrome(); // true

string capitalized = "hello".FirstCharToUpper(); // "Hello"

🛠 Available Methods

ToTitleCase() - Converts a string to Title Case (each word capitalized).

IsEmail() - Checks if the string matches a valid email format.

RemoveSpecialCharacters() - Removes all special characters, leaving only letters, numbers, underscores, and spaces.

IsPalindrome() - Checks if the string reads the same forward and backward (ignoring case and non-alphanumeric characters).

FirstCharToUpper() - Capitalizes only the first character of the string.

📝 License

This project is licensed under the MIT License — feel free to use it in your projects!

📣 Feedback & Contributions

If you find a bug, have a feature request, or want to contribute, feel free to open an issue or submit a pull request. Your support is appreciated! 🌟

#️⃣ TL;DR:

StringExtensionPack = Handy string methods like .ToTitleCase(), .IsEmail(), .RemoveSpecialCharacters(), .IsPalindrome(), and .FirstCharToUpper() packed into a simple NuGet package you can drop into any project.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 228 6/5/2025
1.1.1 187 4/27/2025
1.1.0 185 4/27/2025
1.0.0 222 4/20/2025