Remove space at the end of the distribution variable