use regexp instead of splitting className