Limit the amount of spaces at the end of the form