cleaned up maximum character handling
replaced tabs with spaces as is the custom