remove spaces from start/end dates and added return statement in get_user_contrib function