Update Prototype.java

Corrections:
1.+ or - Strand detection is securer.
2.Getting bases that are out of bounds are truncated for both   positive and negative strands.