replace method equal to equalsIgnoreCase from class TextResolver