deleting blank space at end.