working for char
working for float
working for double
working for string