I mean to avoid calling `syncUrl.setSecret(Util.removeWhitespaces(this.secret.getText().toString()));` in both the `addSyncUrl()` and the `updateSyncUrl(...)` we can do this in the SyncUrl's `setSecret()` method.

```java
...
public void setSecret(String secret) {
        this.secret = Util.removeWhitespaces(secret);
}
```

Then we just do `syncUrl.setSecret(this.secret.getText().toString())`