Formatting string with space separator