minor fixes following Android Studio advices
convert char sequences to string only when needed