[Build] Strip log lines before match test