Remove the empty values for the hash