convert string and long type