Standard LibraryTypesstringMethodstrimOn this pagetrim Method of string. trim() -> string Trims the given string.