setSelectionRange doesn't work on Android
Optimisation