fix string data into numerical format