Fix comparison operators and improve cleanupStrings function