Remove extra TextUtils call; whitespace
Add double-weighted mean for future use
Encapsulate categorical feature encoding in new class