fix return value in string replace documentation