We should use StringUtil.trim(s) instead of String.trim(), to trim ideographic space.
1) go to site admin -> content -> add a basic web content.
2) input title, type " this is title " ( there is a ideographic space in front of the title)
Expect result: title is: "this is title"
Actual result: title is: " this is title "