Replace the deprecated setTitleWithMnemonic: method with setStringValue