test cases written for edge cases. input handled with character