Added function to add whitespace around an item in a str