added the ability in update_dict to handle strings with multiple arguments needing replacement