Added cast to strings for regex.