Tested   : Ok, Sanity Check on input