Find/Replace Functionality - ugly implementation