Function to add a space on both sides of a string.