The problem with the code when you using split to split the list now we have to remove the character, causing it to break the format, is there any other way to do it