Add trim_indent and some tests for trim_indent