Hi, a straight vertical black line is nothing to worry about. We Indians have racial pigmentation called longitudinal melanonychia which is much commoner than the cancer melanoma that you are thinking of. Don't worry too much about it.
Next Steps
If it still bothers you, try to see if it's brown, blue and black and if it's increasing in size. Share photos if you can.