Fixed NumberFormatException

Float.parseFloat() was throwing NumberFormatException when it's parameter was f-ending string which wasn't a "float".