deleting extra space in code