Removing unnecessary punctuation and using array instead of string concatenation