fix strip() bug for text processing