* @return New metadata with a changed artist
*/
public Metadata artist(String artist) {
- return new Metadata(channels, frequency, encoding, artist, name.orNull());
+ return new Metadata(channels, frequency, encoding, (artist != null) ? artist.trim() : artist, name.orNull());
}
/**
* @return New metadata with a changed name
*/
public Metadata name(String name) {
- return new Metadata(channels, frequency, encoding, artist.orNull(), name);
+ return new Metadata(channels, frequency, encoding, artist.orNull(), (name != null) ? name.trim() : name);
}
//