remove unused methods in StringUtils
added cast function for timestamp type