add String.toFloat

As mentioned in issue #1297

Thanks in advance!