fix for [chars] when provided a float as input