fixing some buges
Enhancing setSelection to Use negative numbers in order to select from the end of a text