fix: space character check for '\r'