Write operations: Remove extra space