trim -- Strips whitespaces from both sides.
trim strips whitespaces (or other characters) from the beginning and end of a string.
// 1-a. Function format.
void func::trim(string* output, string input)
// 1-b. Function format.
void func::trim(string* variable)