adding custom word split function