Added trim to fix comparison inconsistency.