replace

fun replace(oldValue: String, newValue: String): Name

This functions replaces all occurrences of oldValue with newValue in the local name and returns a new Name.