Given a list of strings separated by space, return the position of the required string. Return -1 if string not present.