domain validator
Index Out of Bound Exception Fix