Updates the function name.
the updated Function instance
the new name to set (1..50 characters)
if newName is out of acceptable range