StringTrim

See javadoc - uk.gov.gchq.koryphe.impl.function.StringTrim

Available since Koryphe version 1.9.0

Trims all whitespace around a string.

Examples

Trim strings

Java
JSON
Full JSON
Python
final StringTrim function = new StringTrim();
{
  "class" : "StringTrim"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.function.StringTrim"
}
g.StringTrim()

Input type:

java.lang.String

Example inputs:

Input TypeInputResult TypeResult
java.lang.Stringtrailing spaces java.lang.Stringtrailing spaces
java.lang.String leading spacesjava.lang.Stringleading spaces
java.lang.StringnoSpacesjava.lang.StringnoSpaces
nullnull
java.lang.Long54ClassCastException: java.lang.Long cannot be cast to java.lang.String

results matching ""

    No results matching ""