Delete everything after a certain character