Clean leading and trailing whitespaces from a given string. Additionally, all occurrences of multiple whitespaces are replaced with a single whitespace.

clean_str(x)

Arguments

x

Character string.

Value

An absolute path to a file of NULL if the path does not exist.