Remove string parsing from dimensions checking