Safe Guard

Added safeguards and implementation for my own string class