修正safeguard对空格和换行符的误判