Use regexp for 1.8 check.