Added new checks. Added few strings manipulations functions