Fixed issue 3 by stripping trailing spaces before partitioning the AA sequences