remove extra space in constraint