Added an appendWithSeperator method that adds the seperator if the original and appended string are not empty.