I seems to have incorrect text highlighting in Juno. Can someone confirm this is happenning on their Juno as well.
str = " hello world "
newstr = replace(str,r"^\s+" => s"")
newstr = replace(newstr,r"\s+$" => s"")
Picture of incorrect hightlighting