Added lines to check for sequence names less than 4 characters before trimming