Trim search string prior to submitting

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Don't allow recursive delete of mod directory

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>