Script to update a column including a function to clean a text string