Try bleeding the brakes before doing anything else, it's a slow process and sometimes it is necessary to remove the brake caliper and position the bleeder at the 12 o'clock position to remove all air in extreme cases. Usually air will cause excessive travel in the handle. Worst case scenario, it may need a master cylinder rebuild.
Welcome to the forum.