remove - at the end of line