Fix error while adding repos

Remove leading and trailing whitespaces from Repo name and user_name before validation to avoid errors