NCL Home > Documentation > Functions > String manipulation

str_left_strip

Strips leading spaces and TABs from the input strings.

Available in version 5.1.1 and later.

Prototype

	function str_left_strip (
		string_val  : string   
	)

	return_val [dimsizes(string_val)] :  string

Arguments

string_val

A string array of any dimensionality.

Description

This function returns an array of strings with leading spaces and TABs removed.

See Also

str_right_strip, str_strip, str_squeeze

Examples

Example

 str = "     abc        "
 new_string = str_left_strip(str)
 print("<" + new_string + ">")
Output:
(0)     <abc        >