Refactoring extacting condition into method
change format from maxlength 120->160