This library is written statically and it is recommended to add it to the bottom layer of your program and then use it in other layers.
using StringExtentions;
public IActionResult Index(string param)
{
string result = "";
if (param.HasValue()) result = param;
// If we want to ignore the WhitSpace in the submitted parameter
if (param.HasValue(true)) result = param;
return View(result);
}