Added text processing method which can be overridden