use re instead of string method
bad update url