Given a string manipulation scenario, write a function to parse and validate input data according to strict formatting rules.