moved special characters to the end