Added util method to test if input contains unique chars