don't use strlen instead just use the read variable set by getline