New replaceValue method

Quick method to replace a value in an array by key returning the original value.