clean submitted strings