trim_str is completed.