Remove leading and trailing spaces from the package lookup search input
Bug: "Package XY does not exist" when pasting a blank into Jump to package field #845697
Leading or trailing spaces around the package name causes the package search to fail.
Fix: Leading and trailing spaces are removed by using the strip() function.
Edited by Chirath R