Why pad and strip the string later? I didn't understand what this is for.