using this will ignore missed spaces, for eg. if user types in 3hr it is matched to '3 hr'