Supress second regexp and remove "undefined"