Fixed preg_replace eval problem in the others methods