spaces ,-ve numbers and validating brackets done