Checks String before manipulation

Removed debugs