only perform backquote substitution when needed (#34)
remove trailing whitespaces only