Fixes getStyleRanges method name, modified returning styled and nonstyled texts (#640)