Implementation of assignment 2 of laboration 1 with strings.