Logical operators are replaced as upper case strings