cleanup text stuff a bit