rename trim_line to trim_edge
add expression caculator