Small improvement, remove unnecessary use of regex