limit number of characters given as input by user