made text processing methods static, changed calls