added trim function and require reason for unlock request