Let's look at an example where we have the string " hello world" (that extra space at the front is what we want to get rid of). We can use Trim Whitespace to remove the leading space characters, as shown below.
One nice thing about (OpenG's) Trim Whitespace is that it is polymorphic and handles arrays of strings, as shown in this example:
Whitespace is also end of line characters, such as carriage returns (\r) and line feeds (\n). Yes, Trim Whitespace handles those, too.
If you want to give this VI a try, you can obtain it using VI Package Manager (VIPM). Simply select the OpenG String Tools (oglib_string) package from within VIPM. Once installed, this will add a new functions palette at OpenG>>OpenG String Tools. (See here for a quick guide on how to install OpenG on VIPM.)