fix bug causing trailing spaces
add finish message