Fix the update_table() function, No rely on preg_split()