fixed trailing zero in characters