reverted string format and added type cast to value