select now accepts string or array. Added type checker.