fix to compare chars