Converted substring to truncate