consolidate formatForwardSlash and formatSpace into formatForwardSlashAndSpace