remove last space
remove trailing spaces
fix color variables in strings
move line placement
add shell-expand-line