Move trim_whitespace out of private section benoitc/econfig#2