removes trailing + and -