Updating the insert to use mutable strings and implementing the update.