Removed string condition for regex